package task2_2;

/**
 * Created by IntelliJ IDEA.
 * User: ATroshanin
 * Date: 02.06.2006
 * Time: 12:22:21
 * To change this template use File | Settings | File Templates.
 */
public class TaskSymbol {

    private char symbol;
    private boolean useOneTime;
    private int timeUsedCount;

    public TaskSymbol(char sym, boolean use) {
        symbol = sym;
        useOneTime = use;
        timeUsedCount = 0;
    }

    public char getSymbol() {
        return symbol;
    }

    public boolean isUseOneTime() {
        return useOneTime;
    }

    public int getTimeUsedCount() {
        return timeUsedCount;
    }

    public void setTimeUsedCount(int timeUsedCount) {
        this.timeUsedCount = timeUsedCount;
    }

    public boolean isZnak() {

        return (symbol == '+' || symbol == '-' || symbol == '*' || symbol == '/');

    }

    public boolean isDigit() {
        return (symbol >= 48 && symbol <= 57);
    }
}
